package com.ruoyi.canteen.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.canteen.mapper.CanteenCpOrderLogMapper;
import com.ruoyi.canteen.domain.CanteenCpOrderLog;
import com.ruoyi.canteen.service.ICanteenCpOrderLogService;

/**
 * 订单操作日志Service业务层处理
 * 
 * @author zhangw
 * @date 2021-09-19
 */
@Service
public class CanteenCpOrderLogServiceImpl implements ICanteenCpOrderLogService 
{
    @Autowired
    private CanteenCpOrderLogMapper canteenCpOrderLogMapper;

    /**
     * 查询订单操作日志
     * 
     * @param id 订单操作日志主键
     * @return 订单操作日志
     */
    @Override
    public CanteenCpOrderLog selectCanteenCpOrderLogById(Long id)
    {
        return canteenCpOrderLogMapper.selectCanteenCpOrderLogById(id);
    }

    /**
     * 查询订单操作日志列表
     * 
     * @param canteenCpOrderLog 订单操作日志
     * @return 订单操作日志
     */
    @Override
    public List<CanteenCpOrderLog> selectCanteenCpOrderLogList(CanteenCpOrderLog canteenCpOrderLog)
    {
        return canteenCpOrderLogMapper.selectCanteenCpOrderLogList(canteenCpOrderLog);
    }

    /**
     * 新增订单操作日志
     * 
     * @param canteenCpOrderLog 订单操作日志
     * @return 结果
     */
    @Override
    public int insertCanteenCpOrderLog(CanteenCpOrderLog canteenCpOrderLog)
    {
        return canteenCpOrderLogMapper.insertCanteenCpOrderLog(canteenCpOrderLog);
    }

    /**
     * 修改订单操作日志
     * 
     * @param canteenCpOrderLog 订单操作日志
     * @return 结果
     */
    @Override
    public int updateCanteenCpOrderLog(CanteenCpOrderLog canteenCpOrderLog)
    {
        return canteenCpOrderLogMapper.updateCanteenCpOrderLog(canteenCpOrderLog);
    }

    /**
     * 批量删除订单操作日志
     * 
     * @param ids 需要删除的订单操作日志主键
     * @return 结果
     */
    @Override
    public int deleteCanteenCpOrderLogByIds(Long[] ids)
    {
        return canteenCpOrderLogMapper.deleteCanteenCpOrderLogByIds(ids);
    }

    /**
     * 删除订单操作日志信息
     * 
     * @param id 订单操作日志主键
     * @return 结果
     */
    @Override
    public int deleteCanteenCpOrderLogById(Long id)
    {
        return canteenCpOrderLogMapper.deleteCanteenCpOrderLogById(id);
    }
}
